package com.gm.wj.dao;

import com.gm.wj.entity.SysNews;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.JpaRepository;

public interface SysNewsDAO extends JpaRepository<SysNews,Integer> {
    SysNews findById(int id);

    // jpa分页查询  多条件
    Page<SysNews> findAll(Specification<SysNews> sysStudentSpecification, Pageable pageable);
}
